package com.woniu.service.command;

import com.woniu.outlet.elasticSearch.po.Fund;
import com.woniu.util.ApplicationContextHolder;

import java.util.List;

/**
 * @description:
 * @author: my
 * @time: 2021/4/21 18:55
 */
public class HotFundCommand {
    private HotFundCommandHandler handler;

    public HotFundCommand(){
        this.handler =
                ApplicationContextHolder.getApplicationContext().getBean(HotFundCommandHandler.class);
    }

    public List<Fund> execute() throws Exception {
        return this.handler.action(this);
    }
}
